import request from '@/utils/request'

// 查询小卖部商品记录细节列表
export function listDetails(query) {
  return request({
    url: '/system/commissarydetails/list',
    method: 'get',
    params: query
  })
}

// 查询小卖部商品记录细节详细
export function getDetails(id) {
  return request({
    url: '/system/commissarydetails/' + id,
    method: 'get'
  })
}

// 新增小卖部商品记录细节
export function addDetails(data) {
  return request({
    url: '/system/commissarydetails',
    method: 'post',
    data: data
  })
}

// 修改小卖部商品记录细节
export function updateDetails(data) {
  return request({
    url: '/system/commissarydetails',
    method: 'put',
    data: data
  })
}

// 删除小卖部商品记录细节
export function delDetails(id) {
  return request({
    url: '/system/commissarydetails/' + id,
    method: 'delete'
  })
}

// 导出小卖部商品记录细节
export function exportDetails(query) {
  return request({
    url: '/system/commissarydetails/export',
    method: 'get',
    params: query
  })
}